﻿@model Stardust.Models.PromocionBean

<h2>Modificar Promocion</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validationEngine-en.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validationEngine.js")" type="text/javascript"></script>

@using (Html.BeginForm("Edit", "Promociones", FormMethod.Post, new { @class = "form", id = "validate" }))
{
    <fieldset>
        <div class = "widget" >
            <div class = "title"><h6>Modificar Promocion</h6></div>

                <div class=" formRight"> @Html.HiddenFor(model => model.idPromocion)  </div>

            <div class="formRow"> @Html.LabelFor(model => model.descripcion)<span class="req">*</span>
                <div class=" formRight"> @Html.TextBoxFor(model => model.descripcion, new { @class = "validate[required]", maxlength = "100", placeholder = "Maximo 100 caracteres" })  </div>
                <div class="clear"></div>
            </div>
            <div class="formRow">@Html.LabelFor(model => model.descuento)<span class="req">*</span>
                <div class = "formRight" >
                <div class = "selector">@Html.DropDownListFor(model => model.tipo, new SelectList(ViewBag.Tipo, "ID", "nombre", new { ID = Model.tipo}))</div></div>
                <div class="clear"></div>
            </div>

            <div class="formRow">@Html.LabelFor(model => model.razon)<span class="req">*</span>
                <div class="formRight"> @Html.TextBoxFor(model => model.razon, new { @class = "validate[required,custom[onlyNumberSp]]", name = "numsValid", maxlength = "2", placeholder = "Solo numeros" }) </div>
                <div class="clear"></div>
            </div>
            <div class="formRow">@Html.LabelFor(model => model.porcDescontar)<span class="req">*</span>
                <div class="formRight"> @Html.TextBoxFor(model => model.porcDescontar, new { @class = "validate[required,custom[onlyNumberSp]]", name = "numsValid", maxlength = "2", placeholder = "Solo numeros" }) </div>
                <div class="clear"></div>
            </div>
            <div class="formRow">@Html.LabelFor(model => model.hotel)<span class="req">*</span>
                <div class = "formRight" >
                <div class = "selector">@Html.DropDownListFor(model => model.idhotel, new SelectList(ViewBag.Hotel, "ID", "nombre", new { ID = Model.idhotel}))</div></div>
                <div class="clear"></div>
            </div> 
            
        </div>
    </fieldset>
    <p>
        <input type="submit" value="Guardar" class = "redB" />
        @Html.ActionLink("Regresar", "Buscar")
    </p>
}
